using System;
using System.Collections.Generic;
using System.Text;
using Shc.Sql;
using Shc.Json;
namespace Slqj.Data
{
	public static class TableViewAttractionsTicket
	{
		public const string Table = "View_AttractionsTicket";
		public const string AttractionsID = "AttractionsID";
		public const string AttractionTypeID = "AttractionTypeID";
		public const string ProvinceID = "ProvinceID";
		public const string CityID = "CityID";
		public const string AttractionStatus = "AttractionStatus";
		public const string ApproveStatusID = "ApproveStatusID";
		public const string AttractionsName = "AttractionsName";
		public const string Address = "Address";
		public const string Introduction = "Introduction";
		public const string ImageUrl = "ImageUrl";
		public const string SiteUrl = "SiteUrl";
		public const string Description = "Description";
		public const string Sort = "Sort";
		public const string Creater = "Creater";
		public const string CreatedBy = "CreatedBy";
		public const string Created = "Created";
		public const string Modified = "Modified";
		public const string ModifiedBy = "ModifiedBy";
		public const string ModifiedByID = "ModifiedByID";
		public const string AttractionTypeName = "AttractionTypeName";
		public const string ProvinceName = "ProvinceName";
		public const string CityName = "CityName";
		public const string Area = "Area";
		public const string TicketTypeID = "TicketTypeID";
		public const string TicketsApproveStatusID = "TicketsApproveStatusID";
		public const string TicketsName = "TicketsName";
		public const string OriginalPrice = "OriginalPrice";
		public const string SettlementPrice = "SettlementPrice";
		public const string SalesGuidePrice = "SalesGuidePrice";
		public const string Discount = "Discount";
		public const string BackPoint = "BackPoint";
		public const string TicketStatus = "TicketStatus";
		public const string TicketTypeName = "TicketTypeName";
		public const string ApproveStatusName = "ApproveStatusName";
		public const string TicketsApproveStatusName = "TicketsApproveStatusName";
		public const string TicketsID = "TicketsID";
		public const string AttractionsAmount = "AttractionsAmount";
		public const string SystemAmount = "SystemAmount";
		public const string WeekdaysPrice = "WeekdaysPrice";
		public const string WeekendPrice = "WeekendPrice";
		public const string HolidayPrice = "HolidayPrice";
		public const string WeekdaysPriceSettled = "WeekdaysPriceSettled";
		public const string WeekendPriceSettled = "WeekendPriceSettled";
		public const string HolidayPriceSettled = "HolidayPriceSettled";
		public const string SystemWeekendProfit = "SystemWeekendProfit";
		public const string SystemHolidayProfit = "SystemHolidayProfit";
		public const string Profit = "Profit";
	}
	
	[Serializable]
	public class BaseViewAttractionsTicket
		: IDbSessionEntity, IJsonClass
	{
		int m_AttractionsID;
		/// <summary>
        /// 
        /// </summary>
        public int AttractionsID
        {
            get { return m_AttractionsID; }
            set { m_AttractionsID = value; }
        }
		
		int? m_AttractionTypeID;
		/// <summary>
        /// 
        /// </summary>
        public int? AttractionTypeID
        {
            get { return m_AttractionTypeID; }
            set { m_AttractionTypeID = value; }
        }
		
		int? m_ProvinceID;
		/// <summary>
        /// 
        /// </summary>
        public int? ProvinceID
        {
            get { return m_ProvinceID; }
            set { m_ProvinceID = value; }
        }
		
		int? m_CityID;
		/// <summary>
        /// 
        /// </summary>
        public int? CityID
        {
            get { return m_CityID; }
            set { m_CityID = value; }
        }
		
		int? m_AttractionStatus;
		/// <summary>
        /// 
        /// </summary>
        public int? AttractionStatus
        {
            get { return m_AttractionStatus; }
            set { m_AttractionStatus = value; }
        }
		
		int m_ApproveStatusID;
		/// <summary>
        /// 
        /// </summary>
        public int ApproveStatusID
        {
            get { return m_ApproveStatusID; }
            set { m_ApproveStatusID = value; }
        }
		
		string m_AttractionsName;
		/// <summary>
        /// 
        /// </summary>
        public string AttractionsName
        {
            get { return m_AttractionsName; }
            set { m_AttractionsName = value; }
        }
		
		string m_Address;
		/// <summary>
        /// 
        /// </summary>
        public string Address
        {
            get { return m_Address; }
            set { m_Address = value; }
        }
		
		string m_Introduction;
		/// <summary>
        /// 
        /// </summary>
        public string Introduction
        {
            get { return m_Introduction; }
            set { m_Introduction = value; }
        }
		
		string m_ImageUrl;
		/// <summary>
        /// 
        /// </summary>
        public string ImageUrl
        {
            get { return m_ImageUrl; }
            set { m_ImageUrl = value; }
        }
		
		string m_SiteUrl;
		/// <summary>
        /// 
        /// </summary>
        public string SiteUrl
        {
            get { return m_SiteUrl; }
            set { m_SiteUrl = value; }
        }
		
		string m_Description;
		/// <summary>
        /// 
        /// </summary>
        public string Description
        {
            get { return m_Description; }
            set { m_Description = value; }
        }
		
		int m_Sort;
		/// <summary>
        /// 
        /// </summary>
        public int Sort
        {
            get { return m_Sort; }
            set { m_Sort = value; }
        }
		
		int m_Creater;
		/// <summary>
        /// 
        /// </summary>
        public int Creater
        {
            get { return m_Creater; }
            set { m_Creater = value; }
        }
		
		string m_CreatedBy;
		/// <summary>
        /// 
        /// </summary>
        public string CreatedBy
        {
            get { return m_CreatedBy; }
            set { m_CreatedBy = value; }
        }
		
		DateTime m_Created;
		/// <summary>
        /// 
        /// </summary>
        public DateTime Created
        {
            get { return m_Created; }
            set { m_Created = value; }
        }
		
		DateTime m_Modified;
		/// <summary>
        /// 
        /// </summary>
        public DateTime Modified
        {
            get { return m_Modified; }
            set { m_Modified = value; }
        }
		
		string m_ModifiedBy;
		/// <summary>
        /// 
        /// </summary>
        public string ModifiedBy
        {
            get { return m_ModifiedBy; }
            set { m_ModifiedBy = value; }
        }
		
		int? m_ModifiedByID;
		/// <summary>
        /// 
        /// </summary>
        public int? ModifiedByID
        {
            get { return m_ModifiedByID; }
            set { m_ModifiedByID = value; }
        }
		
		string m_AttractionTypeName;
		/// <summary>
        /// 
        /// </summary>
        public string AttractionTypeName
        {
            get { return m_AttractionTypeName; }
            set { m_AttractionTypeName = value; }
        }
		
		string m_ProvinceName;
		/// <summary>
        /// 
        /// </summary>
        public string ProvinceName
        {
            get { return m_ProvinceName; }
            set { m_ProvinceName = value; }
        }
		
		string m_CityName;
		/// <summary>
        /// 
        /// </summary>
        public string CityName
        {
            get { return m_CityName; }
            set { m_CityName = value; }
        }
		
		string m_Area;
		/// <summary>
        /// 
        /// </summary>
        public string Area
        {
            get { return m_Area; }
            set { m_Area = value; }
        }
		
		int? m_TicketTypeID;
		/// <summary>
        /// 
        /// </summary>
        public int? TicketTypeID
        {
            get { return m_TicketTypeID; }
            set { m_TicketTypeID = value; }
        }
		
		int? m_TicketsApproveStatusID;
		/// <summary>
        /// 
        /// </summary>
        public int? TicketsApproveStatusID
        {
            get { return m_TicketsApproveStatusID; }
            set { m_TicketsApproveStatusID = value; }
        }
		
		string m_TicketsName;
		/// <summary>
        /// 
        /// </summary>
        public string TicketsName
        {
            get { return m_TicketsName; }
            set { m_TicketsName = value; }
        }
		
		double m_OriginalPrice;
		/// <summary>
        /// 
        /// </summary>
        public double OriginalPrice
        {
            get { return m_OriginalPrice; }
            set { m_OriginalPrice = value; }
        }
		
		double m_SettlementPrice;
		/// <summary>
        /// 
        /// </summary>
        public double SettlementPrice
        {
            get { return m_SettlementPrice; }
            set { m_SettlementPrice = value; }
        }
		
		double m_SalesGuidePrice;
		/// <summary>
        /// 
        /// </summary>
        public double SalesGuidePrice
        {
            get { return m_SalesGuidePrice; }
            set { m_SalesGuidePrice = value; }
        }
		
		double m_Discount;
		/// <summary>
        /// 
        /// </summary>
        public double Discount
        {
            get { return m_Discount; }
            set { m_Discount = value; }
        }
		
		double m_BackPoint;
		/// <summary>
        /// 
        /// </summary>
        public double BackPoint
        {
            get { return m_BackPoint; }
            set { m_BackPoint = value; }
        }
		
		int m_TicketStatus;
		/// <summary>
        /// 
        /// </summary>
        public int TicketStatus
        {
            get { return m_TicketStatus; }
            set { m_TicketStatus = value; }
        }
		
		string m_TicketTypeName;
		/// <summary>
        /// 
        /// </summary>
        public string TicketTypeName
        {
            get { return m_TicketTypeName; }
            set { m_TicketTypeName = value; }
        }
		
		string m_ApproveStatusName;
		/// <summary>
        /// 
        /// </summary>
        public string ApproveStatusName
        {
            get { return m_ApproveStatusName; }
            set { m_ApproveStatusName = value; }
        }
		
		string m_TicketsApproveStatusName;
		/// <summary>
        /// 
        /// </summary>
        public string TicketsApproveStatusName
        {
            get { return m_TicketsApproveStatusName; }
            set { m_TicketsApproveStatusName = value; }
        }
		
		int m_TicketsID;
		/// <summary>
        /// 
        /// </summary>
        public int TicketsID
        {
            get { return m_TicketsID; }
            set { m_TicketsID = value; }
        }
		
		double m_AttractionsAmount;
		/// <summary>
        /// 
        /// </summary>
        public double AttractionsAmount
        {
            get { return m_AttractionsAmount; }
            set { m_AttractionsAmount = value; }
        }
		
		double m_SystemAmount;
		/// <summary>
        /// 
        /// </summary>
        public double SystemAmount
        {
            get { return m_SystemAmount; }
            set { m_SystemAmount = value; }
        }
		
		double m_WeekdaysPrice;
		/// <summary>
        /// 
        /// </summary>
        public double WeekdaysPrice
        {
            get { return m_WeekdaysPrice; }
            set { m_WeekdaysPrice = value; }
        }
		
		double m_WeekendPrice;
		/// <summary>
        /// 
        /// </summary>
        public double WeekendPrice
        {
            get { return m_WeekendPrice; }
            set { m_WeekendPrice = value; }
        }
		
		double m_HolidayPrice;
		/// <summary>
        /// 
        /// </summary>
        public double HolidayPrice
        {
            get { return m_HolidayPrice; }
            set { m_HolidayPrice = value; }
        }
		
		double m_WeekdaysPriceSettled;
		/// <summary>
        /// 
        /// </summary>
        public double WeekdaysPriceSettled
        {
            get { return m_WeekdaysPriceSettled; }
            set { m_WeekdaysPriceSettled = value; }
        }
		
		double m_WeekendPriceSettled;
		/// <summary>
        /// 
        /// </summary>
        public double WeekendPriceSettled
        {
            get { return m_WeekendPriceSettled; }
            set { m_WeekendPriceSettled = value; }
        }
		
		double m_HolidayPriceSettled;
		/// <summary>
        /// 
        /// </summary>
        public double HolidayPriceSettled
        {
            get { return m_HolidayPriceSettled; }
            set { m_HolidayPriceSettled = value; }
        }
		
		double m_SystemWeekendProfit;
		/// <summary>
        /// 
        /// </summary>
        public double SystemWeekendProfit
        {
            get { return m_SystemWeekendProfit; }
            set { m_SystemWeekendProfit = value; }
        }
		
		double m_SystemHolidayProfit;
		/// <summary>
        /// 
        /// </summary>
        public double SystemHolidayProfit
        {
            get { return m_SystemHolidayProfit; }
            set { m_SystemHolidayProfit = value; }
        }
		
		double m_Profit;
		/// <summary>
        /// 
        /// </summary>
        public double Profit
        {
            get { return m_Profit; }
            set { m_Profit = value; }
        }
		
		
		#region IDbSessionEntity Members
		public void ReadDBData(RowDataReader reader)
        {
            m_AttractionsID = reader[TableViewAttractionsTicket.AttractionsID];
            m_AttractionTypeID = reader[TableViewAttractionsTicket.AttractionTypeID];
            m_ProvinceID = reader[TableViewAttractionsTicket.ProvinceID];
            m_CityID = reader[TableViewAttractionsTicket.CityID];
            m_AttractionStatus = reader[TableViewAttractionsTicket.AttractionStatus];
            m_ApproveStatusID = reader[TableViewAttractionsTicket.ApproveStatusID];
            m_AttractionsName = reader[TableViewAttractionsTicket.AttractionsName];
            m_Address = reader[TableViewAttractionsTicket.Address];
            m_Introduction = reader[TableViewAttractionsTicket.Introduction];
            m_ImageUrl = reader[TableViewAttractionsTicket.ImageUrl];
            m_SiteUrl = reader[TableViewAttractionsTicket.SiteUrl];
            m_Description = reader[TableViewAttractionsTicket.Description];
            m_Sort = reader[TableViewAttractionsTicket.Sort];
            m_Creater = reader[TableViewAttractionsTicket.Creater];
            m_CreatedBy = reader[TableViewAttractionsTicket.CreatedBy];
            m_Created = reader[TableViewAttractionsTicket.Created];
            m_Modified = reader[TableViewAttractionsTicket.Modified];
            m_ModifiedBy = reader[TableViewAttractionsTicket.ModifiedBy];
            m_ModifiedByID = reader[TableViewAttractionsTicket.ModifiedByID];
            m_AttractionTypeName = reader[TableViewAttractionsTicket.AttractionTypeName];
            m_ProvinceName = reader[TableViewAttractionsTicket.ProvinceName];
            m_CityName = reader[TableViewAttractionsTicket.CityName];
            m_Area = reader[TableViewAttractionsTicket.Area];
            m_TicketTypeID = reader[TableViewAttractionsTicket.TicketTypeID];
            m_TicketsApproveStatusID = reader[TableViewAttractionsTicket.TicketsApproveStatusID];
            m_TicketsName = reader[TableViewAttractionsTicket.TicketsName];
            m_OriginalPrice = reader[TableViewAttractionsTicket.OriginalPrice];
            m_SettlementPrice = reader[TableViewAttractionsTicket.SettlementPrice];
            m_SalesGuidePrice = reader[TableViewAttractionsTicket.SalesGuidePrice];
            m_Discount = reader[TableViewAttractionsTicket.Discount];
            m_BackPoint = reader[TableViewAttractionsTicket.BackPoint];
            m_TicketStatus = reader[TableViewAttractionsTicket.TicketStatus];
            m_TicketTypeName = reader[TableViewAttractionsTicket.TicketTypeName];
            m_ApproveStatusName = reader[TableViewAttractionsTicket.ApproveStatusName];
            m_TicketsApproveStatusName = reader[TableViewAttractionsTicket.TicketsApproveStatusName];
            m_TicketsID = reader[TableViewAttractionsTicket.TicketsID];
            m_AttractionsAmount = reader[TableViewAttractionsTicket.AttractionsAmount];
            m_SystemAmount = reader[TableViewAttractionsTicket.SystemAmount];
            m_WeekdaysPrice = reader[TableViewAttractionsTicket.WeekdaysPrice];
            m_WeekendPrice = reader[TableViewAttractionsTicket.WeekendPrice];
            m_HolidayPrice = reader[TableViewAttractionsTicket.HolidayPrice];
            m_WeekdaysPriceSettled = reader[TableViewAttractionsTicket.WeekdaysPriceSettled];
            m_WeekendPriceSettled = reader[TableViewAttractionsTicket.WeekendPriceSettled];
            m_HolidayPriceSettled = reader[TableViewAttractionsTicket.HolidayPriceSettled];
            m_SystemWeekendProfit = reader[TableViewAttractionsTicket.SystemWeekendProfit];
            m_SystemHolidayProfit = reader[TableViewAttractionsTicket.SystemHolidayProfit];
            m_Profit = reader[TableViewAttractionsTicket.Profit];
        }
		
		public void WriteDBData(RowDataWriter writer)
        {
        }

        public void SetIdentityAfterInsert(DBObject idd)
        {
        }
		
		public string TableName
        {
            get { return TableViewAttractionsTicket.Table; }
        }
		#endregion
		
		
		#region IJsonClass Members

        public void JsonDeSerializeObj(JsonHashTable hashToRead)
        {
             m_AttractionsID = hashToRead["AttractionsID"];
			 
             m_AttractionTypeID = hashToRead["AttractionTypeID"];
			 
             m_ProvinceID = hashToRead["ProvinceID"];
			 
             m_CityID = hashToRead["CityID"];
			 
             m_AttractionStatus = hashToRead["AttractionStatus"];
			 
             m_ApproveStatusID = hashToRead["ApproveStatusID"];
			 
             m_AttractionsName = hashToRead["AttractionsName"];
			 
             m_Address = hashToRead["Address"];
			 
             m_Introduction = hashToRead["Introduction"];
			 
             m_ImageUrl = hashToRead["ImageUrl"];
			 
             m_SiteUrl = hashToRead["SiteUrl"];
			 
             m_Description = hashToRead["Description"];
			 
             m_Sort = hashToRead["Sort"];
			 
             m_Creater = hashToRead["Creater"];
			 
             m_CreatedBy = hashToRead["CreatedBy"];
			 
             m_Created = hashToRead["Created"];
			 
             m_Modified = hashToRead["Modified"];
			 
             m_ModifiedBy = hashToRead["ModifiedBy"];
			 
             m_ModifiedByID = hashToRead["ModifiedByID"];
			 
             m_AttractionTypeName = hashToRead["AttractionTypeName"];
			 
             m_ProvinceName = hashToRead["ProvinceName"];
			 
             m_CityName = hashToRead["CityName"];
			 
             m_Area = hashToRead["Area"];
			 
             m_TicketTypeID = hashToRead["TicketTypeID"];
			 
             m_TicketsApproveStatusID = hashToRead["TicketsApproveStatusID"];
			 
             m_TicketsName = hashToRead["TicketsName"];
			 
             m_OriginalPrice = hashToRead["OriginalPrice"];
			 
             m_SettlementPrice = hashToRead["SettlementPrice"];
			 
             m_SalesGuidePrice = hashToRead["SalesGuidePrice"];
			 
             m_Discount = hashToRead["Discount"];
			 
             m_BackPoint = hashToRead["BackPoint"];
			 
             m_TicketStatus = hashToRead["TicketStatus"];
			 
             m_TicketTypeName = hashToRead["TicketTypeName"];
			 
             m_ApproveStatusName = hashToRead["ApproveStatusName"];
			 
             m_TicketsApproveStatusName = hashToRead["TicketsApproveStatusName"];
			 
             m_TicketsID = hashToRead["TicketsID"];
			 
             m_AttractionsAmount = hashToRead["AttractionsAmount"];
			 
             m_SystemAmount = hashToRead["SystemAmount"];
			 
             m_WeekdaysPrice = hashToRead["WeekdaysPrice"];
			 
             m_WeekendPrice = hashToRead["WeekendPrice"];
			 
             m_HolidayPrice = hashToRead["HolidayPrice"];
			 
             m_WeekdaysPriceSettled = hashToRead["WeekdaysPriceSettled"];
			 
             m_WeekendPriceSettled = hashToRead["WeekendPriceSettled"];
			 
             m_HolidayPriceSettled = hashToRead["HolidayPriceSettled"];
			 
             m_SystemWeekendProfit = hashToRead["SystemWeekendProfit"];
			 
             m_SystemHolidayProfit = hashToRead["SystemHolidayProfit"];
			 
             m_Profit = hashToRead["Profit"];
			 
        }

        public void JsonSerializeObj(JsonHashTable hashToFill)
        {
            hashToFill["AttractionsID"] = AttractionsID;
			
            hashToFill["AttractionTypeID"] = AttractionTypeID;
			
            hashToFill["ProvinceID"] = ProvinceID;
			
            hashToFill["CityID"] = CityID;
			
            hashToFill["AttractionStatus"] = AttractionStatus;
			
            hashToFill["ApproveStatusID"] = ApproveStatusID;
			
            hashToFill["AttractionsName"] = AttractionsName;
			
            hashToFill["Address"] = Address;
			
            hashToFill["Introduction"] = Introduction;
			
            hashToFill["ImageUrl"] = ImageUrl;
			
            hashToFill["SiteUrl"] = SiteUrl;
			
            hashToFill["Description"] = Description;
			
            hashToFill["Sort"] = Sort;
			
            hashToFill["Creater"] = Creater;
			
            hashToFill["CreatedBy"] = CreatedBy;
			
            hashToFill["Created"] = Created;
			
            hashToFill["Modified"] = Modified;
			
            hashToFill["ModifiedBy"] = ModifiedBy;
			
            hashToFill["ModifiedByID"] = ModifiedByID;
			
            hashToFill["AttractionTypeName"] = AttractionTypeName;
			
            hashToFill["ProvinceName"] = ProvinceName;
			
            hashToFill["CityName"] = CityName;
			
            hashToFill["Area"] = Area;
			
            hashToFill["TicketTypeID"] = TicketTypeID;
			
            hashToFill["TicketsApproveStatusID"] = TicketsApproveStatusID;
			
            hashToFill["TicketsName"] = TicketsName;
			
            hashToFill["OriginalPrice"] = OriginalPrice;
			
            hashToFill["SettlementPrice"] = SettlementPrice;
			
            hashToFill["SalesGuidePrice"] = SalesGuidePrice;
			
            hashToFill["Discount"] = Discount;
			
            hashToFill["BackPoint"] = BackPoint;
			
            hashToFill["TicketStatus"] = TicketStatus;
			
            hashToFill["TicketTypeName"] = TicketTypeName;
			
            hashToFill["ApproveStatusName"] = ApproveStatusName;
			
            hashToFill["TicketsApproveStatusName"] = TicketsApproveStatusName;
			
            hashToFill["TicketsID"] = TicketsID;
			
            hashToFill["AttractionsAmount"] = AttractionsAmount;
			
            hashToFill["SystemAmount"] = SystemAmount;
			
            hashToFill["WeekdaysPrice"] = WeekdaysPrice;
			
            hashToFill["WeekendPrice"] = WeekendPrice;
			
            hashToFill["HolidayPrice"] = HolidayPrice;
			
            hashToFill["WeekdaysPriceSettled"] = WeekdaysPriceSettled;
			
            hashToFill["WeekendPriceSettled"] = WeekendPriceSettled;
			
            hashToFill["HolidayPriceSettled"] = HolidayPriceSettled;
			
            hashToFill["SystemWeekendProfit"] = SystemWeekendProfit;
			
            hashToFill["SystemHolidayProfit"] = SystemHolidayProfit;
			
            hashToFill["Profit"] = Profit;
			
        }

        #endregion
		
	}
}
